#include <string>
#include <iostream>
#include <fstream>
using std::string;

int getcipher(){
	std::cout << "What kind of cipher? (lowercase)"<<std::endl;
	std::cout << "Supported ciphers:" << std::endl;
	string supportedciphers[3] = {"1.playfair", "2. caesar", "3. caesarkeyed"};
	int loop;
	for (loop=0; loop <  3; loop++)
		std::cout << supportedciphers[loop] << std::endl;
	string cipher;
	getline(std::cin, cipher);
	string supported[5]={"playfair","abbott","blah","caesarkeyed","another"};
	int p;
	for (p=0; p < 5; p++)
		if (cipher == supported[p]){
			return p;
		}
}
int getrequesttype(){
	std::cout << "Message (Type '1') or file (type '2')?" << std::endl;
	string cipherrequesttype;
	getline(std::cin, cipherrequesttype);
	if (cipherrequesttype=="1"){return 0;}
	else {return 1;}
}

string getmessage(){
	string line;
	getline(std::cin, line);
	if (line.size() == 0){
		std::cout << "The message is blank!" << std::endl;
		return 0;
	}
	return line;
}

string getfilename(){
	std::cout << "What is the file name?" << std::endl;
	string filename;
	getline(std::cin, filename);
	return filename;
}